import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Container from '@/components/Container'
import AppList from '@/components/AppList'
import BindTcpmm from '@/components/BindTcpmm'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'dashboard',
      name: 'Container',
      component: Container,
      children: [
        {path: 'dashboard', name: '绑定充电宝M', component: HelloWorld},
        {path: 'bind2', name: '绑定软件M', component: BindTcpmm},
        {path: 'applist', name: '已定制APP列表', component: AppList},
      ]
    }
  ]
})
